package com.chengzheng.crawler.spiderman.work.save;

import com.chengzheng.crawler.spiderman.pojo.Task;
import com.chengzheng.crawler.spiderman.work.Worker;
import com.chengzheng.crawler.spiderman.work.WorkerManager;
import com.chengzheng.crawler.spiderman.work.WorkerResult;

/**
 * @author zhengcheng
 * @date 2018/1/30
 * @time 下午5:51
 * @email chengzhengzheng@meituan.com
 **/

public class SaveManager extends WorkerManager {
    public SaveManager(int size) {
        super(size);
    }

    @Override
    protected Worker buildWorker() {
        this.worker = new SaveWorker(this);
        return worker;
    }

    @Override
    public Task takeTask() throws InterruptedException {
        return null;
    }

    @Override
    protected void handleResult(WorkerResult workerResult) {

    }
}
